package shiqi.AdapterPattern.Class;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
        DogAapter dogAapter = (DogAapter)applicationContext.getBean("dogAapter");
        dogAapter.cry();
        dogAapter.move();
        client client = (shiqi.AdapterPattern.Class.client)applicationContext.getBean("client");
        client.test();


    }
}
